package ysq.xyg.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * 收货管理
 *
 * @author congcong tao
 * @create 2018/8/9 下午10:11
 */
@Table(name = "yyg_receiving")
public class Receiving implements Serializable {

    @Id
    private String id;

    @Column(name = "member_id")
    private String memberId;

    @Column(name = "activity_id")
    private String activityId;

    @Column(name = "item_id")
    private String itemId;

    /**
     * 状态，默认进行中
     * 1=进行中2=结束
     */
    private String status;

    /**
     * 类型默认1
     * 1=收货2=转让
     */
    private String type;

    @Column(name = "address_id")
    private String addressId;

    /**
     * 保存地址
     */
    private String address;

    /**
     * 收货人电话
     */
    private String phone;

    /**
     * 收货人姓名
     */
    private String name;

    /**
     * 转让价格
     */
    @Column(name = "transfer_price")
    private Double transferPrice;

    @Column(name = "receiving_time")
    private Date receivingTime;

    @Column(name = "other_user")
    private String otherUser;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "receiving_desc")
    private String receivingDesc;

    /**
     * 微信支付账号
     */
    @Column(name = "we_chat")
    private String weChat;

    /**
     * 阿里支付账号
     */
    private String alipay;

    /**
     * 兑换码
     */
    @Column(name = "redeem_code")
    private String redeemCode;

    @Transient
    private Item item;

    @Transient
    private Activity activity;

    @Transient
    private String itemTitle;

    @Transient
    private String activityTitle;

    @Transient
    private String otherUserName;

    /**
     * 获奖者
     */
    @Transient
    private String nickName;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getActivityId() {
        return activityId;
    }

    public void setActivityId(String activityId) {
        this.activityId = activityId;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAddressId() {
        return addressId;
    }

    public void setAddressId(String addressId) {
        this.addressId = addressId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getTransferPrice() {
        return transferPrice;
    }

    public void setTransferPrice(Double transferPrice) {
        this.transferPrice = transferPrice;
    }

    public Date getReceivingTime() {
        return receivingTime;
    }

    public void setReceivingTime(Date receivingTime) {
        this.receivingTime = receivingTime;
    }

    public String getOtherUser() {
        return otherUser;
    }

    public void setOtherUser(String otherUser) {
        this.otherUser = otherUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getWeChat() {
        return weChat;
    }

    public void setWeChat(String weChat) {
        this.weChat = weChat;
    }

    public String getAlipay() {
        return alipay;
    }

    public void setAlipay(String alipay) {
        this.alipay = alipay;
    }

    public Item getItem() {
        return item;
    }

    public void setItem(Item item) {
        this.item = item;
    }

    public Activity getActivity() {
        return activity;
    }

    public void setActivity(Activity activity) {
        this.activity = activity;
    }

    public String getItemTitle() {
        return itemTitle;
    }

    public void setItemTitle(String itemTitle) {
        this.itemTitle = itemTitle;
    }

    public String getActivityTitle() {
        return activityTitle;
    }

    public void setActivityTitle(String activityTitle) {
        this.activityTitle = activityTitle;
    }

    public String getOtherUserName() {
        return otherUserName;
    }

    public void setOtherUserName(String otherUserName) {
        this.otherUserName = otherUserName;
    }

    public String getReceivingDesc() {
        return receivingDesc;
    }

    public void setReceivingDesc(String receivingDesc) {
        this.receivingDesc = receivingDesc;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getRedeemCode() {
        return redeemCode;
    }

    public void setRedeemCode(String redeemCode) {
        this.redeemCode = redeemCode;
    }
}